package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.List;

public class PeTestAppointmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PeTestAppointmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPeTestAppointmentIdIsNull() {
            addCriterion("pe_test_appointment_id is null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdIsNotNull() {
            addCriterion("pe_test_appointment_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdEqualTo(Integer value) {
            addCriterion("pe_test_appointment_id =", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdNotEqualTo(Integer value) {
            addCriterion("pe_test_appointment_id <>", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdGreaterThan(Integer value) {
            addCriterion("pe_test_appointment_id >", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_test_appointment_id >=", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdLessThan(Integer value) {
            addCriterion("pe_test_appointment_id <", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_test_appointment_id <=", value, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdIn(List<Integer> values) {
            addCriterion("pe_test_appointment_id in", values, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdNotIn(List<Integer> values) {
            addCriterion("pe_test_appointment_id not in", values, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_appointment_id between", value1, value2, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_appointment_id not between", value1, value2, "peTestAppointmentId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNull() {
            addCriterion("user_info_id is null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIsNotNull() {
            addCriterion("user_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdEqualTo(Integer value) {
            addCriterion("user_info_id =", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotEqualTo(Integer value) {
            addCriterion("user_info_id <>", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThan(Integer value) {
            addCriterion("user_info_id >", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_info_id >=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThan(Integer value) {
            addCriterion("user_info_id <", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_info_id <=", value, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdIn(List<Integer> values) {
            addCriterion("user_info_id in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotIn(List<Integer> values) {
            addCriterion("user_info_id not in", values, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdBetween(Integer value1, Integer value2) {
            addCriterion("user_info_id between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andUserInfoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_info_id not between", value1, value2, "userInfoId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdIsNull() {
            addCriterion("pe_test_id is null");
            return (Criteria) this;
        }

        public Criteria andPeTestIdIsNotNull() {
            addCriterion("pe_test_id is not null");
            return (Criteria) this;
        }

        public Criteria andPeTestIdEqualTo(Integer value) {
            addCriterion("pe_test_id =", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdNotEqualTo(Integer value) {
            addCriterion("pe_test_id <>", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdGreaterThan(Integer value) {
            addCriterion("pe_test_id >", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_test_id >=", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdLessThan(Integer value) {
            addCriterion("pe_test_id <", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdLessThanOrEqualTo(Integer value) {
            addCriterion("pe_test_id <=", value, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdIn(List<Integer> values) {
            addCriterion("pe_test_id in", values, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdNotIn(List<Integer> values) {
            addCriterion("pe_test_id not in", values, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_id between", value1, value2, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_id not between", value1, value2, "peTestId");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessIsNull() {
            addCriterion("pe_test_appointment_success is null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessIsNotNull() {
            addCriterion("pe_test_appointment_success is not null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessEqualTo(Integer value) {
            addCriterion("pe_test_appointment_success =", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessNotEqualTo(Integer value) {
            addCriterion("pe_test_appointment_success <>", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessGreaterThan(Integer value) {
            addCriterion("pe_test_appointment_success >", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessGreaterThanOrEqualTo(Integer value) {
            addCriterion("pe_test_appointment_success >=", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessLessThan(Integer value) {
            addCriterion("pe_test_appointment_success <", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessLessThanOrEqualTo(Integer value) {
            addCriterion("pe_test_appointment_success <=", value, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessIn(List<Integer> values) {
            addCriterion("pe_test_appointment_success in", values, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessNotIn(List<Integer> values) {
            addCriterion("pe_test_appointment_success not in", values, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_appointment_success between", value1, value2, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentSuccessNotBetween(Integer value1, Integer value2) {
            addCriterion("pe_test_appointment_success not between", value1, value2, "peTestAppointmentSuccess");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreIsNull() {
            addCriterion("pe_test_appointment_score is null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreIsNotNull() {
            addCriterion("pe_test_appointment_score is not null");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreEqualTo(Double value) {
            addCriterion("pe_test_appointment_score =", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreNotEqualTo(Double value) {
            addCriterion("pe_test_appointment_score <>", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreGreaterThan(Double value) {
            addCriterion("pe_test_appointment_score >", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreGreaterThanOrEqualTo(Double value) {
            addCriterion("pe_test_appointment_score >=", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreLessThan(Double value) {
            addCriterion("pe_test_appointment_score <", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreLessThanOrEqualTo(Double value) {
            addCriterion("pe_test_appointment_score <=", value, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreIn(List<Double> values) {
            addCriterion("pe_test_appointment_score in", values, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreNotIn(List<Double> values) {
            addCriterion("pe_test_appointment_score not in", values, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreBetween(Double value1, Double value2) {
            addCriterion("pe_test_appointment_score between", value1, value2, "peTestAppointmentScore");
            return (Criteria) this;
        }

        public Criteria andPeTestAppointmentScoreNotBetween(Double value1, Double value2) {
            addCriterion("pe_test_appointment_score not between", value1, value2, "peTestAppointmentScore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}